package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Connector entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "connector", catalog = "lldb", uniqueConstraints = @UniqueConstraint(columnNames = "connectorid"))
public class Connector implements java.io.Serializable {

	// Fields

	private String id;
	private String connectorid;
	private String connectorname;
	private String possition;
	private String email;
	private String tel;
	private String mb;
	private Integer age;
	private String sex;
	private String hobe;
	private String notes;
	private String customerid;

	// Constructors

	/** default constructor */
	public Connector() {
	}

	/** minimal constructor */
	public Connector(String id, String connectorid, String customerid) {
		this.id = id;
		this.connectorid = connectorid;
		this.customerid = customerid;
	}

	/** full constructor */
	public Connector(String id, String connectorid, String connectorname, String possition, String email,
			String tel, String mb, Integer age, String sex, String hobe, String notes, String customerid) {
		this.id = id;
		this.connectorid = connectorid;
		this.connectorname = connectorname;
		this.possition = possition;
		this.email = email;
		this.tel = tel;
		this.mb = mb;
		this.age = age;
		this.sex = sex;
		this.hobe = hobe;
		this.notes = notes;
		this.customerid = customerid;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "connectorid", unique = true, nullable = false, length = 32)
	public String getConnectorid() {
		return this.connectorid;
	}

	public void setConnectorid(String connectorid) {
		this.connectorid = connectorid;
	}

	@Column(name = "connectorname", length = 30)
	public String getConnectorname() {
		return this.connectorname;
	}

	public void setConnectorname(String connectorname) {
		this.connectorname = connectorname;
	}

	@Column(name = "possition", length = 50)
	public String getPossition() {
		return this.possition;
	}

	public void setPossition(String possition) {
		this.possition = possition;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "tel", length = 50)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "mb", length = 30)
	public String getMb() {
		return this.mb;
	}

	public void setMb(String mb) {
		this.mb = mb;
	}

	@Column(name = "age")
	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(name = "sex", length = 3)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "hobe", length = 500)
	public String getHobe() {
		return this.hobe;
	}

	public void setHobe(String hobe) {
		this.hobe = hobe;
	}

	@Column(name = "notes", length = 500)
	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	@Column(name = "customerid", nullable = false, length = 36)
	public String getCustomerid() {
		return this.customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

}